<div class="modal" style="display: block;">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close" ui-sref="^">
          <span aria-hidden="true">×</span></button>
        <h4 class="modal-title">审核</h4>
      </div>
      <div class="modal-body">
        <form class="form-horizontal" id="pass_modal">
          <div class="form-group">
            <label class="col-sm-2 control-label">订单类别<span class="required">*</span></label>
            <div class="col-sm-6">
              <select class="form-control select2" name="order_source" id="selectType" ng-model="audit.order_source" ng-change="typeModalChange()" data-rule="required;">
                <option value="">请选择</option>
                <option value="reg_abroad">境外注册</option>
                <option value="reg_internal">境内注册</option>
                <option value="audit">审计</option>
                <option value="trademark">商标</option>
                <option value="patent">专利</option>
                <option value="other">其它</option>
              </select>
            </div>
          </div>
          <div class="form-group" ng-show="audit.order_source != 'other'">
            <label class="col-sm-2 control-label">订单名称<span class="required">*</span></label>
            <div class="col-sm-6">
              <select class="form-control select2" id="orderSelect2" name="order_id" ng-model="audit.order_id" style="width: 100%;"></select>
              <span id="orderSelect2-validator" class="select-validator"></span>
            </div>
          </div>
          <div class="form-group" ng-if="audit.order_source == 'other'">
            <label class="col-sm-2 control-label">其他名称<span class="required">*</span></label>
            <div class="col-sm-6">
              <input
                type="text"
                class="form-control date-input"
                id="orderOtherInput"
                name="orderOtherInput"
                ng-model="data.order_name"
              >
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">信件内容</label>
            <div class="col-sm-6">
              <input type="text" class="form-control" name="letter_type" ng-model="audit.letter_type" placeholder="信函、邮单、杂志等" data-rule="length[~20];">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">信件数量</label>
            <div class="col-sm-6">
              <input type="text" class="form-control" name="letter_qty" ng-model="audit.qty" readonly>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">是否纳入库存<span class="required">*</span></label>
            <div class="col-sm-6">
              <select class="form-control select2" name="instock" id="instock" ng-model="audit.instock" ng-change="instockChange()" data-rule="required;">
                <option value="">请选择</option>
                <option value="1">是</option>
                <option value="0">否</option>
              </select>
            </div>
          </div>
          <div class="form-group" ng-show="audit.instock==1">
            <label class="col-sm-2 control-label">纳入库存数<span class="required">*</span></label>
            <div class="col-sm-6">
              <input type="text" class="form-control" name="letter_stockQty" ng-model="audit.stockQty" data-rule="integer(+);" placeholder="请填写信件数量计入库存量">
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default pull-left" data-dismiss="modal" ui-sref="^">取消</button>
        <button type="button" class="btn btn-primary" ng-click="save()">确定</button>
      </div>
    </div>
  </div>
</div>
